#ifndef __TIMER_H
#define __TIMER_H
#include "sys.h"
void TIM3_PWM_Init(u16 arr, u16 psc, u8 set);
void TIM4_PWM_Init(u16 arr, u16 psc, u8 set);
void TIM1_Cap_Init(u16 arr, u16 psc, u8 set);
extern u8 TIM1CH1_CAPTURE_STA, New_data_CH1; // 输入捕获状态
extern u32 TIM1CH1_CAPTURE_VAL;              // 输入ֵ捕获值(TIM2/TIM1是32位)
//
extern u8 TIM1CH2_CAPTURE_STA, New_data_CH2; // 输入捕获状态
extern u32 TIM1CH2_CAPTURE_VAL;              // 输入ֵ捕获值ֵ(TIM2/TIM1是32位)
//
extern u8 TIM1CH3_CAPTURE_STA, New_data_CH3; // 输入捕获状态
extern u32 TIM1CH3_CAPTURE_VAL;              // 输入ֵ捕获值ֵ(TIM2/TIM1是32位)
//
extern u8 TIM1CH4_CAPTURE_STA, New_data_CH4; // 输入捕获状态
extern u32 TIM1CH4_CAPTURE_VAL;              // 输入ֵ捕获值ֵ(TIM2/TIM1是32位)
#endif
